package main

import (
	"encoding/json"
	"fmt"
)

func test() *int {
	var num int
	num = 4234
	return &num
}

func main() {
	pointer := test()
	//fmt.Println(*pointer)
	fmt.Println(pointer)
	data, _ := json.Marshal(pointer)
	fmt.Println(data)
	data, _ = json.Marshal(test)
	fmt.Println(data)
}
